package com.example.coffeejava.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("orderitem")
public class OrderItem {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Integer infoId;
    private Integer num;
    private Integer price;
    private String orderId;
    @TableField(exist = false)
    private Long cartId;
    @TableField(exist = false)
    private String infoName;

    @TableField(exist = false)
    private String infoImage;


}
